package com.gexin.controller;
import com.gexin.core.web.AppController;
/*import com.gexin.model.Tcity;
import com.gexin.model.accounting.TaccountingLevel;
import com.gexin.model.accounting.TcertificateType;*/
import com.jfinal.ext.route.ControllerBind;
import com.jfinal.log.Log;
/**
 * 清理缓存的接口
 * @author 肖得明  
 *  http://127.0.0.1:801/cache/clear
 */
@ControllerBind(controllerKey = "/cache/clear")   
public class CacheManageController extends AppController {   
	private static Log log = Log.getLog(CacheManageController.class);
	public void index(){
		log.info("进入清理缓存成功...");  
/*		Tcity.dao.cache_clear();//清除城市列表的缓存                        
		TcertificateType.dao.cache_clear();//清除证书类型的缓存
		TaccountingLevel.dao.cache_clear();//清楚等级的缓存
*/		renderText("清理成功！");            
	}
}
